package src.week7.LEIJICHENG;

public class WANGZHAOJUNtest {
    public static void main(String[] args) {
        WANGZHAOJUN WANGZHAOJUN1 = new WANGZHAOJUN("WANGZHAOJUN1","mage1",13888);
        WANGZHAOJUN WANGZHAOJUN2 = new WANGZHAOJUN("WANGZHAOJUN2","mage2",18888);
        WANGZHAOJUN1.getteamfight();

        boolean a = WANGZHAOJUN1.mainposition.equals(WANGZHAOJUN2.mainposition);
        System.out.println("The mainposition of WANGZHAOJUN1 and WANGZHAOJUN2 are the same: "+ a);

        System.out.println(WANGZHAOJUN1.toString()+"\n"+WANGZHAOJUN2.toString());
        if(WANGZHAOJUN1.compareTo(WANGZHAOJUN2)==1){
            System.out.println("WANGZHAOJUN1 is more powerful than WANGZHAOJUN2!");
        }
        else System.out.println(("WANGZHAOJUN2 is more powerful than WANGZHAOJUN1!"));
    }
}
